package pers.mihao.quickstream.common.task.scheduler.annotation;

import org.springframework.context.annotation.Import;
import pers.mihao.quickstream.common.task.constans.SchedulerCenterType;
import pers.mihao.quickstream.common.task.scheduler.AutomaticTaskSchedulerConfig;

import java.lang.annotation.*;

/**
 * @author mihao
 * @since 2024/11/19
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(AutomaticTaskSchedulerConfig.class)
public @interface EnableSchedulerTask {

    /**
     * 集群模式
     * @return
     */
    SchedulerCenterType type() default SchedulerCenterType.isolated;


}
